package com.eeepay.eeepay_v2.util;

import com.eeepay.eeepay_v2.model.MccType;

import java.util.List;
import java.util.Map;

import cn.eeepay.api.grpc.nano.MerAddModular;

/**
 * Created by Ching on 2016/6/30.
 * 页面间传递数据
 */
public class DataUtils {

    private Map<String, List<MccType>> datas;

    private static DataUtils typeUtils;
    private String merType;
    private String merTypeNo;
    private String industry;
    private String mcc;

    private MerAddModular.ServiceInfo[] serInfoArray;

    public static DataUtils getInstance() {
        if (typeUtils == null) {
            synchronized (DataUtils.class) {
                if (typeUtils == null) {
                    typeUtils = new DataUtils();
                }
            }
        }
        return typeUtils;
    }


    public Map<String, List<MccType>> getDatas() {
        return datas;
    }

    public void setDatas(Map<String, List<MccType>> datas) {
        this.datas = datas;
    }

    public String getMerType() {
        return merType;
    }

    public void setMerType(String merType, String merTypeNo) {
        this.merType = merType;
        this.merTypeNo = merTypeNo;
    }

    public String getMerTypeNo() {
        return merTypeNo;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry, String mcc) {
        this.industry = industry;
        this.mcc = mcc;
    }

    public String getMcc() {
        return mcc;
    }

    public MerAddModular.ServiceInfo[] getSerInfoArray() {
        return serInfoArray;
    }

    public void setSerInfoArray(MerAddModular.ServiceInfo[] serInfoArray) {
        this.serInfoArray = serInfoArray;
    }
}
